package com.service.impl;

import com.entity.StorageDetails;
import com.mapper.StorageDetailsMapper;
import com.service.StorageDetailsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import java.util.List;

/**
 * @ fileName:StorageDetailsServiceImpl
 * @ description:
 * @ author:dzh
 * @ createTime:2022/5/4 17:44
 * @ version:1.0.0
 */
@Service
public class StorageDetailsServiceImpl implements StorageDetailsService {
    @Resource
    private StorageDetailsMapper mapper;
    @Override
    public List<StorageDetails> listByShId(Integer shId) {
        return mapper.listByShId(shId);
    }

    @Override
    public int insert(StorageDetails storageDetails) {
        return mapper.insert(storageDetails);
    }

    @Override
    public int insertMore(List<StorageDetails> list) {
        return mapper.insertMore(list);
    }
}
